package net.livingflow.web.resource;

import java.util.List;

import javax.ws.rs.Path;

import net.livingflow.model.Flow;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author xueqiang.mi
 * @since 2010-11-30
 */
@Path("/ajax")
@Component
@Scope(BeanDefinition.SCOPE_SINGLETON)
public class AjaxResource extends BaseResource {

	public List<Flow> getDigg() {
		return flowService.digg();
	}

	public List<Flow> getHottest() {
		return flowService.hottest();
	}

	public List<Flow> getLatest() {
		return flowService.latest();
	}
}
